home *** CD-ROM | disk | FTP | other *** search
/ Chip 2006 June (Extra) / CHIP 2006-06.3.iso / program / opensource / clamav-devel.exe / contrib / Windows / clamavw.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-05-16  |  2.0 KB  |  70 lines

  1. // clamavw.h : interface of the CClamavView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. /*
  6.  *  Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk>
  7.  *
  8.  *  This program is free software; you can redistribute it and/or modify
  9.  *  it under the terms of the GNU General Public License as published by
  10.  *  the Free Software Foundation; either version 2 of the License, or
  11.  *  (at your option) any later version.
  12.  *
  13.  *  This program is distributed in the hope that it will be useful,
  14.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  *  GNU General Public License for more details.
  17.  *
  18.  *  You should have received a copy of the GNU General Public License
  19.  *  along with this program; if not, write to the Free Software
  20.  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  21.  *  MA 02110-1301, USA.
  22.  */
  23. class CClamavView : public CView
  24. {
  25. protected: // create from serialization only
  26.     CClamavView();
  27.     DECLARE_DYNCREATE(CClamavView)
  28.  
  29. // Attributes
  30. public:
  31.     CClamavDoc* GetDocument();
  32.  
  33. // Operations
  34. public:
  35.  
  36. // Overrides
  37.     // ClassWizard generated virtual function overrides
  38.     //{{AFX_VIRTUAL(CClamavView)
  39.     public:
  40.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  41.     protected:
  42.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  43.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  44.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  45.     //}}AFX_VIRTUAL
  46.  
  47. // Implementation
  48. public:
  49.     virtual ~CClamavView();
  50. #ifdef _DEBUG
  51.     virtual void AssertValid() const;
  52.     virtual void Dump(CDumpContext& dc) const;
  53. #endif
  54.  
  55. protected:
  56.  
  57. // Generated message map functions
  58. protected:
  59.     //{{AFX_MSG(CClamavView)
  60.     //}}AFX_MSG
  61.     DECLARE_MESSAGE_MAP()
  62. };
  63.  
  64. #ifndef _DEBUG  // debug version in clamavw.cpp
  65. inline CClamavDoc* CClamavView::GetDocument()
  66.    { return (CClamavDoc*)m_pDocument; }
  67. #endif
  68.  
  69. /////////////////////////////////////////////////////////////////////////////
  70.